package com.lebang.mapper;

import com.lebang.domain.DownloadMemberRecord;
import com.lebang.entity.TbTaskAotian;
import com.lebang.example.TbTaskAotianExample;
import com.lebang.model.cences.SdkMoney;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

public interface TbTaskAotianMapper {
    long countByExample(TbTaskAotianExample example);

    int deleteByExample(TbTaskAotianExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(TbTaskAotian record);

    int insertSelective(TbTaskAotian record);

    List<TbTaskAotian> selectByExample(TbTaskAotianExample example);

    TbTaskAotian selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TbTaskAotian record, @Param("example") TbTaskAotianExample example);

    int updateByExample(@Param("record") TbTaskAotian record, @Param("example") TbTaskAotianExample example);

    int updateByPrimaryKeySelective(TbTaskAotian record);

    int updateByPrimaryKey(TbTaskAotian record);

    int selectByOrderId(String orderId);

    BigDecimal sumAotianByTime(@Param("appStore") String appStore, @Param("star") LocalDateTime star, @Param("end") LocalDateTime end, @Param("type") int type);

    int aotianMember(@Param("star") LocalDateTime star, @Param("end") LocalDateTime end);

    BigDecimal aotianMoney(@Param("star") LocalDateTime star, @Param("end") LocalDateTime end);

    int todayaotianMember(@Param("star") LocalDateTime star, @Param("end") LocalDateTime end);

    BigDecimal todayaotianMoney(@Param("star") LocalDateTime star, @Param("end") LocalDateTime end);

    List<SdkMoney> selectByTimeAndAppStore(@Param("appStore") String appStore, @Param("star") LocalDateTime star, @Param("end") LocalDateTime end);
}